<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Spring Boot 核心特性</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .feature-card {
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.9);
        }
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }
        .number-circle {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            color: white;
            font-weight: bold;
            flex-shrink: 0;
        }
        .section-title {
            position: relative;
            display: inline-block;
        }
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 2px;
        }
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 2rem 0;
        }
        .intro-text {
            font-size: 1.125rem;
            line-height: 1.8;
            color: #4a5568;
            text-indent: 2em;
        }
        .feature-icon {
            font-size: 2rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20">
        <div class="container mx-auto px-6 text-center">
            <h1 class="text-5xl font-bold mb-4" style="font-family: 'Noto Serif SC', serif;">
                Spring Boot 核心特性
            </h1>
            <p class="text-xl opacity-90 max-w-3xl mx-auto">
                构建现代 Java 应用程序的强大框架，让开发变得简单而高效
            </p>
            <div class="mt-8 flex justify-center space-x-4">
                <span class="bg-white bg-opacity-20 px-4 py-2 rounded-full text-sm">
                    <i class="fas fa-rocket mr-2"></i>快速开发
                </span>
                <span class="bg-white bg-opacity-20 px-4 py-2 rounded-full text-sm">
                    <i class="fas fa-cog mr-2"></i>自动配置
                </span>
                <span class="bg-white bg-opacity-20 px-4 py-2 rounded-full text-sm">
                    <i class="fas fa-box mr-2"></i>生产就绪
                </span>
            </div>
        </div>
    </section>

    <!-- Introduction -->
    <section class="py-16 bg-white">
        <div class="container mx-auto px-6 max-w-4xl">
            <p class="intro-text">
                Spring Boot 的核心特性包括自动配置、起步依赖、嵌入式 Web 服务器、开箱即用的配置、生产就绪功能、快速开发、CLI 支持和代码生成。这些特性使得 Spring Boot 成为构建和管理现代 Java 应用程序的强大工具，提升了开发效率并简化了配置和部署过程。
            </p>
        </div>
    </section>

    <!-- Mermaid Diagram -->
    <section class="py-12 bg-gray-50">
        <div class="container mx-auto px-6">
            <h2 class="section-title text-3xl font-bold text-center mb-12 text-gray-800">核心特性概览</h2>
            <div class="mermaid">
                graph TD
                    A[Spring Boot] --> B[自动配置]
                    A --> C[起步依赖]
                    A --> D[嵌入式服务器]
                    A --> E[生产就绪]
                    A --> F[快速开发]
                    B --> B1[减少配置工作]
                    B --> B2[智能默认值]
                    C --> C1[预定义依赖集合]
                    C --> C2[简化依赖管理]
                    D --> D1[Tomcat]
                    D --> D2[Jetty]
                    D --> D3[Undertow]
                    E --> E1[Actuator监控]
                    E --> E2[Metrics指标]
                    E --> E3[日志管理]
                    F --> F1[CLI工具]
                    F --> F2[代码生成]
                    F --> F3[测试支持]
                    
                    style A fill:#667eea,stroke:#764ba2,stroke-width:3px,color:#fff
                    style B fill:#e0e7ff,stroke:#667eea,stroke-width:2px
                    style C fill:#e0e7ff,stroke:#667eea,stroke-width:2px
                    style D fill:#e0e7ff,stroke:#667eea,stroke-width:2px
                    style E fill:#e0e7ff,stroke:#667eea,stroke-width:2px
                    style F fill:#e0e7ff,stroke:#667eea,stroke-width:2px
            </div>
        </div>
    </section>

    <!-- Features Grid -->
    <section class="py-16 bg-white">
        <div class="container mx-auto px-6">
            <h2 class="section-title text-3xl font-bold text-center mb-12 text-gray-800">十大核心特性详解</h2>
            
            <div class="grid md:grid-cols-2 gap-8 max-w-6xl mx-auto">
                <!-- Feature 1 -->
                <div class="feature-card p-8 rounded-2xl shadow-lg">
                    <div class="flex items-start space-x-4">
                        <div class="number-circle">1</div>
                        <div class="flex-1">
                            <h3 class="text-2xl font-bold mb-3 text-gray-800">
                                <i class="fas fa-magic feature-icon mr-3"></i>自动配置
                            </h3>
                            <p class="text-gray-600 leading-relaxed">
                                Spring Boot 提供了自动配置的功能，根据项目的类路径、配置文件和其他环境信息自动配置 Spring 应用程序所需的组件。自动配置可以减少开发者的配置工作量，应用程序能够根据所依赖的库自动选择合适的配置。
                            </p>
                        </div>
                    </div>
                </div>

                <!-- Feature 2 -->
                <div class="feature-card p-8 rounded-2xl shadow-lg">
                    <div class="flex items-start space-x-4">
                        <div class="number-circle">2</div>
                        <div class="flex-1">
                            <h3 class="text-2xl font-bold mb-3 text-gray-800">
                                <i class="fas fa-cube feature-icon mr-3"></i>起步依赖（Starters）
                            </h3>
                            <p class="text-gray-600 leading-relaxed">
                                Spring Boot 提供了一系列"起步依赖"（Starters），这些是针对特定功能或技术的预定义依赖集合。通过使用这些起步依赖，开发者可以快速引入所需的库和配置。例如，<code class="bg-purple-100 text-purple-800 px-2 py-1 rounded">spring-boot-starter-web</code> 提供了构建 Web 应用程序所需的所有依赖和配置。
                            </p>
                        </div>
                    </div>
                </div>

                <!-- Feature 3 -->
                <div class="feature-card p-8 rounded-2xl shadow-lg">
                    <div class="flex items-start space-x-4">
                        <div class="number-circle">3</div>
                        <div class="flex-1">
                            <h3 class="text-2xl font-bold mb-3 text-gray-800">
                                <i class="fas fa-server feature-icon mr-3"></i>嵌入式 Web 服务器
                            </h3>
                            <p class="text-gray-600 leading-relaxed">
                                Spring Boot 支持嵌入式 Web 服务器（如 Tomcat、Jetty 和 Undertow），使得应用程序能够独立运行，而无需部署到外部的应用服务器。这简化了部署过程，并使得应用程序的发布更加灵活。
                            </p>
                        </div>
                    </div>
                </div>

                <!-- Feature 4 -->
                <div class="feature-card p-8 rounded-2xl shadow-lg">
                    <div class="flex items-start space-x-4">
                        <div class="number-circle">4</div>
                        <div class="flex-1">
                            <h3 class="text-2xl font-bold mb-3 text-gray-800">
                                <i class="fas fa-box-open feature-icon mr-3"></i>开箱即用的配置
                            </h3>
                            <p class="text-gray-600 leading-relaxed">
                                Spring Boot 提供了多种开箱即用的配置选项，能够自动设置 Spring 和第三方库的默认配置。这些配置可以通过 <code class="bg-purple-100 text-purple-800 px-2 py-1 rounded">application.properties</code> 或 <code class="bg-purple-100 text-purple-800 px-2 py-1 rounded">application.yml</code> 文件进行定制，支持环境变量和系统属性的配置。
                            </p>
                        </div>
                    </div>
                </div>

                <!-- Feature 5 -->
                <div class="feature-card p-8 rounded-2xl shadow-lg">
                    <div class="flex items-start space-x-4">
                        <div class="number-circle">5</div>
                        <div class="flex-1">
                            <h3 class="text-2xl font-bold mb-3 text-gray-800">
                                <i class="fas fa-shield-alt feature-icon mr-3"></i>生产就绪功能
                            </h3>
                            <p class="text-gray-600 leading-relaxed mb-4">
                                Spring Boot 包含多种生产环境的支持功能，包括：
                            </p>
                            <ul class="space-y-2 text-gray-600">
                                <li class="flex items-start">
                                    <i class="fas fa-check-circle text-purple-600 mt-1 mr-2"></i>
                                    <span><strong>Actuator</strong>：提供应用程序监控和管理功能，如健康检查、指标监控、应用程序状态查看等。</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-check-circle text-purple-600 mt-1 mr-2"></i>
                                    <span><strong>Metrics</strong>：集成了监控和指标收集功能，可以通过 Actuator 的端点获取应用程序的运行数据。</span>
                                </li>
                                <li class="flex items-start">
                                    <i class="fas fa-check-circle text-purple-600 mt-1 mr-2"></i>
                                    <span><strong>Logging</strong>：自动配置日志系统，并提供多种日志级别和输出选项。</span>
                                </li>
                            </ul>
                        </div>
                    </div>
                </div>

                <!-- Feature 6 -->
                <div class="feature-card p-8 rounded-2xl shadow-lg">
                    <div class="flex items-start space-x-4">
                        <div class="number-circle">6</div>
                        <div class="flex-1">
                            <h3 class="text-2xl font-bold mb-3 text-gray-800">
                                <i class="fas fa-rocket feature-icon mr-3"></i>快速开发
                            </h3>
                            <p class="text-gray-600 leading-relaxed">
                                Spring Boot 通过约定优于配置的原则，减少了开发时的配置需求，使得开发者能够更加专注于业务逻辑。使用 Spring Boot 的开发者可以迅速创建和启动 Spring 应用程序，减少了重复的配置和样板代码。
                            </p>
                        </div>
                    </div>
                </div>

                <!-- Feature 7 -->
                <div class="feature-card p-8 rounded-2xl shadow-lg">
                    <div class="flex items-start space-x-4">
                        <div class="number-circle">7</div>
                        <div class="flex-1">
                            <h3 class="text-2xl font-bold mb-3 text